package zgame.bean;

public class Message {
  private String fromUser = "";
  private String toUser = "";
  private StringBuilder message = new StringBuilder();

  public String getFromUser() {
    return fromUser;
  }

  public Message setFromUser(String fromUser) {
    this.fromUser = fromUser;
    return this;
  }

  public String getToUser() {
    return toUser;
  }

  public Message setToUser(String toUser) {
    this.toUser = toUser;
    return this;
  }

  public String getMessage() {
    return message.toString();
  }

  public Message setMessage(String message) {
    this.message.setLength(0);
    this.message.append(message);
    return this;
  }
  
  public Message appendMessage(String message) {
    this.message.append(message);
    return this;
  }
}
